import { request, config } from 'utils'

const { api } = config
const {
  exchangeRateAllBrif,
  exchangeRateCurrency,
  exchangeRateDel,
  exchangeRateGet,
  exchangeRateList,
  exchangeRateListBrif,
  exchangeRateSet,
} = api

export async function allbrif (params) {
  return request({
    url: exchangeRateAllBrif,
    method: 'post',
    data: params,
  })
}
export async function currency (params) {
  return request({
    url: exchangeRateCurrency,
    method: 'put',
    data: params,
  })
}
export async function del (params) {
  return request({
    url: exchangeRateDel,
    method: 'delete',
    data: params,
  })
}
export async function get (params) {
  return request({
    url: exchangeRateGet,
    method: 'put',
    data: params,
  })
}
export async function list (params) {
  return request({
    url: exchangeRateList,
    method: 'put',
    data: params,
  })
}
export async function listbrif (params) {
  return request({
    url: exchangeRateListBrif,
    method: 'post',
    data: params,
  })
}
export async function set (params) {
  return request({
    url: exchangeRateSet,
    method: 'put',
    data: params,
  })
}
